using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using ZoneFiveSoftware.Common.Visuals.Fitness;
using ZoneFiveSoftware.Common.Data;
using ZoneFiveSoftware.Common.Data.Fitness;
using ZoneFiveSoftware.Common.Data.GPS;
using BENBUN.Properties;
using BENBUN.UI.Forms;
using BENBUN.UI.Confirmations;

namespace BENBUN.Importers
{
    class ExtendImport : IExtendDataImporters
    {

        public void AfterImport(IList added, IList updated)
        {
            if (Settings.Settings.WIWEnabled)
            {
                IList<IActivity> activities = new List<IActivity>();
                
                foreach (IActivity activity in added)
                {     
                    if (activity.GPSRoute != null)
                    {
                        activities.Add(activity);
                    }
                }

                if (activities.Count > 0)
                {
                    LoadMultipleConfirmation form = new LoadMultipleConfirmation();
                    form.activities = activities;
                    form.ShowDialog();
                }
            }
        }

        public void BeforeImport(IList items)
        {
        }

        // Properties
        public IList<IFileImporter> FileImporters
        {
            get
            {
                return null;
            }
        }



    }
}
